﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ServiceLibrary.Model;

namespace ServiceLibrary.DLayer
{
    public class ErrorManager
    {
        #region GUID

        private static string _current_GUID;
        public string GUID {
            get { return _current_GUID; }
            set { _current_GUID = value; }
        }

        #endregion

        #region SISM_ErrorDetail

        public void SISM_ErrorDetail_put(string description, string type)
        {
            //if (GUID == null)
            //    throw new Exception("GUID non assegnato");

            //BABELE_Entities context = new BABELE_Entities();
            //SISM_ErrorDetail errorAdd = new SISM_ErrorDetail();

            //errorAdd.SOAP_GUID = GUID;
            //errorAdd.ERROR_DESCRIPTION = description;
            //errorAdd.ERROR_TYPE = type;
            //errorAdd.DATA = DateTime.Now;
            //errorAdd.ACKNOWLEDGEMENT = "0";

            //context.AddToSISM_ErrorDetail(errorAdd);
            //context.SaveChanges();
        }

        #endregion
    }
}
